import {screen}  from "electron"
import Win from './win.coffee'

export default new Proxy(
  {}
  get:(self,name)=>
    =>
      {width,height} = screen.getPrimaryDisplay().size

      #width/=2

      win = Win[name] {
        width
        height
        roundedCorners: false
        transparent: true
        resizable: false
        hasShadow: false
      }
      win.setAlwaysOnTop(true,'screen-saver')
      win.setPosition 0,0
      win.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true })
      win
)
